package cc.vicp.djx314.starfood.domain.dish;

import java.io.Serializable;
import java.sql.Date;

import cc.vicp.djx314.starfood.domain.account.Admin;

/**
 * 菜式对应的活动表
 * @author 水山清风
 *
 */
public class Activity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -418465879733945903L;
	//~属性=====================================================================
	/**
	 * 自增主键
	 */
	private Integer id;
	/**
	 * 活动名称
	 */
	private String name;
	/**
	 * 活动描述
	 */
	private String describe;
	/**
	 * 活动默认折扣
	 */
	private Double defaultDiscount;
	/**
	 * 活动是否有效
	 */
	private Boolean enabled;
	/**
	 * 活动发布日期
	 */
	private Date issueDate;
	/**
	 * 活动开始日期
	 */
	private Date startDate;
	/**
	 * 活动结束日期
	 */
	private Date endDate;
	/**
	 * 开始时间的文字描述
	 */
	private String startStr;
	/**
	 * 结束时间的文字描述
	 */
	private String endStr;
	/**
	 * 发布活动的管理员
	 */
	private Admin admin;
	/**
	 * 活动的详细信息
	 */
	private String moreInfo;
	//~构造函数=====================================================================
	/**
	 * 默认构造函数
	 */
	public Activity() {
	}

	//~getter和setter=====================================================================
	/**
	 * 获得id
	 * @return
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置id
	 * @param id
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获得name
	 * @return
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置name
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获得describe
	 * @return
	 */
	public String getDescribe() {
		return describe;
	}
	/**
	 * 设置describe
	 * @param describe
	 */
	public void setDescribe(String describe) {
		this.describe = describe;
	}
	/**
	 * 获得defaultDiscount
	 * @return
	 */
	public Double getDefaultDiscount() {
		return defaultDiscount;
	}
	/**
	 * 设置defaultDiscount
	 * @param defaultDiscount
	 */
	public void setDefaultDiscount(Double defaultDiscount) {
		this.defaultDiscount = defaultDiscount;
	}
	public Boolean getEnabled() {
		return enabled;
	}
	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}
	public Date getIssueDate() {
		return issueDate;
	}
	public void setIssueDate(Date issueDate) {
		this.issueDate = issueDate;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public String getStartStr() {
		return startStr;
	}
	public void setStartStr(String startStr) {
		this.startStr = startStr;
	}
	public String getEndStr() {
		return endStr;
	}
	public void setEndStr(String endStr) {
		this.endStr = endStr;
	}
	public Admin getAdmin() {
		return admin;
	}
	public void setAdmin(Admin admin) {
		this.admin = admin;
	}
	public String getMoreInfo() {
		return moreInfo;
	}
	public void setMoreInfo(String moreInfo) {
		this.moreInfo = moreInfo;
	}
}
